﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false"  CodeBehind="CommentsManage.aspx.cs" Inherits="eBlog.Web.Admin.CommentsManage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link href="resources/css/style.css" rel="stylesheet" type="text/css" />
<script src="resources/scripts/common.js" type="text/javascript"></script>
<script src="resources/scripts/admincp.js" type="text/javascript"></script>
</head>

<body>


<div id="append_parent"></div>
<div class="container" id="cpcontainer">
<script type="text/JavaScript">parent.document.title = '管理中心 - vt_Comments ';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;评论管理';</script>

<div class="floattop">
<div class="itemtitle">
	<h3>评论管理中心</h3>
</div>
</div>

<div class="floattopempty"></div>

<form name="cpform" id="cpform" runat="server">
<input type="hidden" name="anchor" value="" />
<input type="hidden" ID="Referrer" runat="server" />


<asp:Panel ID="edit" runat="server" Visible="false" EnableViewState="false">
<table class="tb tb2 nobdb" id="base">
	<tr><td colspan="2" class="td27">ID:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:label id="lblID" runat="server"></asp:label></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">TargetID:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtTargetID" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">ParentID:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtParentID" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">UserID:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtUserID" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">Name:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtName" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">Email:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtEmail" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">SiteUrl:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtSiteUrl" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">Content:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtContent" runat="server" class="txt" TextMode="MultiLine"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">IP:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtIP" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">CreateDate:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtCreateDate" runat="server" class="txt" onclick="showcalendar(event, this)"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">Staus:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtStaus" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>
</table>
<div class="fixsel"><asp:Button ID="btnSave" runat="server" Text="保 存" class="btn" OnClick="btnSave_Click" ></asp:Button><span style="margin-left:20px"> </span><input type="button" value="返 回" id="goback" class="btn" onclick="javascript:history.go(-1)" /></div>
</asp:Panel>

<%--列表容器--%>
<asp:Panel ID="list" runat="server" Visible="false" EnableViewState="false">
<table class="tb tb2 ">
<tr><th colspan="15" class="partition">共<strong> <%=ListCount %> </strong>个评论<a href="" class="act lightlink normal"></a></th></tr>

<tr class="header">
	<th>ID</th>
	<th>评论目标ID</th>
	<th>用户ID</th>
	<th>昵称</th>
	<th width="40%">评论内容</th>
	<th>评论时间</th>
	<th>评论状态</th>
	<th>管理选项</th>
</tr>

<asp:Repeater ID="RPLIST" runat="server">
<itemtemplate>
<tr class="hover">
	<td class="td25"><input type="checkbox" name="checkAllID" value="<%#Eval("ID") %>" class="checkbox"></td>
	<td><%#Eval("TargetID") %></td>
	<td><%#Eval("UserID") %></td>
	<td><%#Eval("Name") %></td>
	<td><%#Eval("Content") %></td>
	<td><%#Eval("CreateDate") %></td>
	<td><%#Eval("Staus") %></td>

	<td><a href="?action=show&id=<%#Eval("ID") %>" class="act">查看</a><a href="?action=edit&id=<%#Eval("ID") %>" class="act">编辑</a><a href="?action=del&id=<%#Eval("ID") %>" class="act" onclick="return confirm('数据删除不可恢复,确认删除吗？');" >删除</a></td>
</tr>
</itemtemplate>
</asp:Repeater>
<tr><td colspan="15"><div class="cuspages right"><div class="pg"><asp:Literal ID="PageNav" runat="server"></asp:Literal></div></div>
<div class="fixsel"><input type="checkbox" name="chkall" onclick="checkAll('prefix', this.form, 'checkAllID')" class="checkbox">删? &nbsp;
<input type="button" class="btn" id="checkAllDel" name="checkAllDel" value="提交" onclick="return confirm('确认选择批量删除吗？');"/></div>
</td></tr>
</table>
</asp:Panel>

<%--AjaxPanel Show 单个内容展示层--%>
<asp:Panel ID="show" runat="server" Visible="false" EnableViewState="false">
<table class="cmlist" width="100%">
<% DBScript.IDBBase dal = DBScript.DBFactory.GetDbProvider(); eBlog.Entity.Comments model = dal.GetModel<eBlog.Entity.Comments>(id); %>
	<tr><th>ID</th> <td><%=model.ID %></td></tr>
	<tr><th>TargetID</th> <td><%=model.TargetID %></td></tr>
	<tr><th>ParentID</th> <td><%=model.ParentID %></td></tr>
	<tr><th>UserID</th> <td><%=model.UserID %></td></tr>
	<tr><th>Name</th> <td><%=model.Name %></td></tr>
	<tr><th>Email</th> <td><%=model.Email %></td></tr>
	<tr><th>SiteUrl</th> <td><%=model.SiteUrl %></td></tr>
	<tr><th>Content</th> <td><%=model.Content %></td></tr>
	<tr><th>IP</th> <td><%=model.IP %></td></tr>
	<tr><th>CreateDate</th> <td><%=model.CreateDate %></td></tr>
	<tr><th>Staus</th> <td><%=model.Staus %></td></tr>

</table>
</asp:Panel>


<input type="hidden" ID="ErrCodeStr" runat="server" />
<script type="text/javascript">formShowErr("ErrCodeStr");</script>
</form>
</div>
</body>
</html>
